<template>
  <div>
    <div class="head">
      <img :src="'back.png' | imagePath" />
      <p>换电柜设置</p>
      <span></span>
    </div>
    <div class="chargeCabinetSet">
      <div class="chargeCabinetSet-title">换电柜: 2398766646646464</div>
      <div class="chargeCabinetSet-item" v-for="(item,index) in ['1','2']">
        <div class="chargeCabinetSet-item-l">
          <div class="chargeCabinetSet-item-top">
            1号 <span class="chargeCabinetSet-item-tip">空仓</span>
          </div>
          <div class="chargeCabinetSet-item-bottom" v-if="index == 1">
            <p><em></em> 122345566666</p>
            <p><em></em> 122345587087</p>
          </div>
        </div>
        <div class="chargeCabinetSet-item-r">
          <button>操作</button>
        </div>
      </div>
    </div>
    <div class="upBox">
      <div class="chargeCabinetSet-up">
        <div
        @click="$.router.push('chargeCabinetChange')"
        class="chargeCabinetSet-up-item"
        v-for="item in ['设置空仓','设置满电','设置不满电','设置闲置','开柜']"
        >
         {{item}}
        </div>
        <div class="chargeCabinetSet-up-btn">取消</div>
      </div>
    </div>
  </div>
</template>
<script>
  export default{
    data(){
      return{}
    },
    beforeCreate() {
      document.querySelector('body').setAttribute('style', ' background:#F4F4F4')
    },
    methods:{}
  }
</script>
<style>
  .chargeCabinetSet-title{
    color: #999999;
    font-size: 0.32rem;
    padding: 0.38rem 0.4rem 0.58rem;
  }
  .chargeCabinetSet-item{
    background-color: #FFFFFF;
    margin-bottom: 0.26rem;
    display: flex;
    padding: 0.4rem 0.4rem;
    align-items: flex-end;
  }
  .chargeCabinetSet-item-l{
    flex: 1;
  }
  .chargeCabinetSet-item-top{
    display: flex;
    align-items: center;
    height: 0.48rem;
    margin: 0.13rem 0 0.13rem;
  }
  .chargeCabinetSet-item-tip{
    display: block;
    width: 1.2rem;
    height: 0.48rem;
    line-height: 0.48rem;
    border-radius: 0.24rem;
    color: #6DC5C6;
    border: 1px solid #6DC5C6;
    text-align: center;
    margin-left: 0.2rem;
  }
  .chargeCabinetSet-item-bottom{
    display: flex;
    align-items: center;
    margin-top: 0.26rem;
  }
  .chargeCabinetSet-item-bottom p{
    display: flex;
    align-items: center;
    margin-right: 0.4rem;
  }
  .chargeCabinetSet-item-bottom p em{
    display: block;
    width: 0.1rem;
    height: 0.26rem;
    background-color: #6DC5C6;
    border-radius: 0.05rem;
    margin-right: 0.1rem;
  }
  .chargeCabinetSet-item-r button{
    background-color: #6DC5C6;
    color: #FFFFFF;
    border-radius: 0.37rem;
    color: #FFFFFF;
    width: 1.6rem;
    line-height: 0.74rem;
    font-size: 0.32rem;
  }
  .chargeCabinetSet-up{
    position: fixed;
    border-radius: 0.26rem 0.26rem 0 0;
    background-color: #FFFFFF;
    bottom: 0;
    width: 100%;
    padding: 0.26rem 0.4rem 0;
  }
  .chargeCabinetSet-up-item{
    text-align: center;
    font-size: 0.4rem;
    line-height: 1.33rem;
    color: #333333;
  }
  .chargeCabinetSet-up-btn{
    color: #999999;
    text-align: center;
    font-size: 0.4rem;
    margin-bottom: 0.4rem;
  }
</style>
